﻿<%@ Page Language="C#" MasterPageFile="~/admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="Danhsachsanpham.aspx.cs" Inherits="admin_Danhsachsanpham" Title="Untitled Page" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="menuPlaceHolder" runat="Server">
<h5>Menu</h5>
     <ul class="Actions">
      <li><a href = "DanhSachSanPham.aspx">Danh Sách Sản Phẩm</a></li>
    <li><a href = "ThemSanPham.aspx">Thêm Sản Phẩm</a></li>
    -------------------------------------
    <li><a href="DanhSachKhachHang.aspx">Danh Sách Khách Hàng</a></li>
    <li><a href ="ThemKhachHang.aspx">Thêm Khách Hàng</a></li>
    </ul>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <div style="color: teal">
        <h1>
            <i>Danh sách sản phẩm</i></h1>
    </div>
    <div style="display: table-cell; width: 84%; float: left;">
        Tên sản phẩm:
        <asp:TextBox ID="txt_Tensp" runat="server"></asp:TextBox>
        Loai MH:
        <asp:DropDownList ID="ddl_loai" CssClass="DropDownList" runat="server">
        </asp:DropDownList>
        Doanh Nghiệp:
        <asp:DropDownList ID="ddl_ncc" CssClass="DropDownList" runat="server">
        </asp:DropDownList>
        Trạng thái :
        <asp:DropDownList ID="dd_tt" CssClass="DropDownList" runat="server">
        </asp:DropDownList>
        <asp:Button ID="btn_Search" runat="server" Text="Tìm kiếm" OnClick="btn_Search_Click" />
        <a href="">Thêm Sản Phẩm</a>
        <asp:LinkButton ID="lbt_xoa" runat="server" OnClick="lbt_xoa_Click">Xóa</asp:LinkButton>
    </div>
    <br />
    <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound"
        OnItemCommand="Repeater1_ItemCommand">
        <HeaderTemplate>
            <table cellspacing="1" cellpadding="3" width="100%"  border="0">
                <thead>
                    <tr class="listtableheader">
                        <th>
                            Mã sản phẩm</th>
                        <th>
                            Tên sản phẩm</th>
                        <th>
                            Loại MH</th>
                        <th>
                            Nhà cung cấp</th>
                        <th>
                            Giá gốc</th>
                        <th>
                            Giá bán</th>
                            <th>
                        Số lượng phiếu</th>
                        <th>
                            Chiết khấu</th>
                        <th>
                            Hình ảnh</th>
                        <th>
                            Điểm đến</th>
                        <th>
                            Trạng Thái</th>
                        <th>
                            Sửa</th>
                        <th>
                            <input id="cb_All" type="checkbox" onclick="CheckAll(1);" />
                            <a href="javascript:CheckAll(2)">Chọn hết</a>
                        </th>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <%#Eval("MaSP") %>
                </td>
                <td>
                    <asp:HyperLink ID="hyp_Tensp" runat="server"></asp:HyperLink></td>
                <td>
                    <asp:Literal ID="lit_Mamh" runat="server" /></td>
                <td>
                    <asp:Literal ID="lit_Madn" runat="server" /></td>
                <td>
                    <%#Eval("GiaGoc") %>
                </td>
                <td>
                    <%#Eval("Giaban") %>
                </td>
                <td>
                    <%#Eval("SLphieu") %>
                </td>
                <td>
                    <%#Eval("ChietKhau") %>
                </td>
                <td>
                    <asp:Image ID="img_hinhanh" Width="100px" Height="100px" runat="server" /></td>
                <td>
                    <asp:Literal ID="Lit_Madd" runat="server" /></td>
                <td>
                    <asp:Literal ID="Lit_Matt" runat="server" /></td>
                <td>
                    <asp:HyperLink ID="hpl_Edit" Text="Edit" runat="server" /></td>
                <td>
                    <asp:CheckBox ID="cb_Xoa" runat="server" />
                    <asp:HiddenField ID="hf_id" Value='<%#Eval("MaSP") %>' runat="server" />
                </td>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody> </table>
        </FooterTemplate>
    </asp:Repeater>
    <cc1:PagerV2_8 ID="hyperlinkPager" runat="server" OnCommand="hyperlinkPager_Command" />
</asp:Content>
